const http=require('http')
const server=http.createServer()
server.on('request', (req,res)=> {
	res.setHeader('Content-Type','text/html;charset=utf-8')
	// 发送响应
	res.end(`您的请求路径为： ${req.url}, and request method is ${req.method}`)
})

server.listen(80, function(){
	console.log('server running at http://127.0.0.1')
})